module.exports = class extends think.Logic {
	getDevicePageListAction() {
		let currentPage = this.get('currentPage'),
			pageSize = this.get('pageSize');
		if (Number(currentPage) <= 0 || Number(pageSize) <= 0) {
			this, fail('参数错误')
		}
	}

	getHistoryPageListAction() {
		let deviceId = this.get('deviceId'),
			currentPage = this.get('currentPage'),
			pageSize = this.get('pageSize');
		if (typeof currentPage != 'string' || (typeof currentPage == 'string' && !currentPage.length)) {
			return this.fail('不能识别的deviceId')
		}
		if (Number(currentPage) <= 0 || Number(pageSize) <= 0) {
			return this, fail('参数错误')
		}
	}

	getReportDetailAction() {
		let reportId = this.get('reportId');
		if(!reportId) return this.fail('不能识别的参数')
	}
};
